import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/department_user_tree_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/department_user_tree_entity.g.dart';

@JsonSerializable()
class DepartmentUserTreeEntity {

	DepartmentUserTreeEntity();

	factory DepartmentUserTreeEntity.fromJson(Map<String, dynamic> json) => $DepartmentUserTreeEntityFromJson(json);
	String? id;
	String? companyCode;
	String? departmentName;
	dynamic departmentLevel;
	dynamic path;
	String? parentId;
	String? deleted;
	String? createDate;
	String? createBy;
	String? updateDate;
	String? updateBy;
	String? type;
	String? removeStatus;
  ///	子集
  List<DepartmentUserTreeEntity>? children = [];
	dynamic isPerson;
	int? taskCount;
	dynamic tuserList;

  /// 是否展开
  bool? isExpand = false;

	Map<String, dynamic> toJson() => $DepartmentUserTreeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

